// 判断组件是函数组件还是类组件
import isFunction from './isFunction'
export default function isFunctionComponent(virtualDOM) {
  const type = virtualDOM.type;
  return type && isFunction(virtualDOM) && !(type.prototype && type.prototype.render)
}